# coding: utf-8
import xss

defen = xss.XssCleaner()

stroka = """<script type="text/javascript">
alert("ta");
</script>"""

print defen.strip(stroka)